<template>
	<view class="Lu-detailed-box">
		<view class="Lu-detailed-top">
			
		</view>
		<view class="Lu-detailed-lists">
			<view class="Lu-detailed-list" v-for="(item,index) in yuelists" :key="index">
				<view class="Lu-detailed-listorder">
					<view class="Lu-detailed-listit">
						<text style="font-weight:600">{{item.memo}}</text>
					</view>
					<view class="Lu-detailed-listime">
						{{item.addtime}}
					</view>
				</view>
				<view class="Lu-detailed-money">
					<text style="font-weight:600">+{{item.price}}</text>
				</view>
			</view>
		</view>
		<view class="Lu-detailed-footer">
			没有更多数据了~
		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex';
	import md5 from 'js-md5';
	export default {
		computed: {
			...mapState(['hasLogin','userInfo','openId','apiUrl'])
		},
		data() {
			return {
				yuelists:[]
			}
			
		},
		onLoad() {
			uni.request({
				url:this.apiUrl+'api/get_user_caiwu',
				method:"POST",
				header:{
					openid:this.openId
				},
				success: (res) => {
					console.log(res.data.data)
					this.yuelists = res.data.data
				}
				
			})
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
	
	.Lu-detailed-box{
		.Lu-detailed-top{
			width: 100%;
			height: 20rpx;
			background-color: #f5f5f5;
		}
		.Lu-detailed-lists{
			padding: 0 40rpx;
			.Lu-detailed-list{
				display: flex;
				align-items: center;
				justify-content: space-between;
				border-bottom:2rpx solid #e5e5e5 ;
				padding: 20rpx 0 30rpx;
				.Lu-detailed-listit{
					font-size: 30rpx;
					color: #333333;
				}
				.Lu-detailed-listime{
					font-size: 24rpx;
					color: #999999;
					margin-top: 10rpx;
				}
				.Lu-detailed-money{
					font-size: 48rpx;
					color: #ff4e4e;
				}
			}
		}
		.Lu-detailed-footer{
			font-size: 24rpx;
			color: #999999;
			margin-top: 20rpx;
			text-align: center;
		}
	}
</style>
